package com.black.platform.role.service.bz.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.black.platform.role.mapper.PositionRoleMapper;
import com.black.platform.role.po.PositionRole;
import com.black.platform.role.service.bz.PositionRoleService;
import org.springframework.stereotype.Service;

@Service
public class PositionRoleServiceImpl extends ServiceImpl<PositionRoleMapper, PositionRole> implements PositionRoleService {

    @Override
    public int addPositionRole(PositionRole positionRole) {
        return this.baseMapper.insert(positionRole);
    }

    @Override
    public int removePositionRole(PositionRole positionRole) {
        return this.baseMapper.deleteById(positionRole.getId());
    }
}
